package com.fzrskj.cloud.free.core.enums;

/**
 * ProductStatusEnum.
 *
 * @author zj.
 *         Created on 2019/1/22 0022.
 */
public enum  ProductStatusEnum {
    /**
     * 正常.
     */
    NORMAL(1, "正常"),
    /**
     * 暂停.
     */
    PAUSE(2, "暂停");
    /**
     * status.
     */
    private Integer status;
    /**
     * name.
     */
    private String name;

    /**
     * ProductStatusEnum.
     * @param status status.
     * @param name name.
     */
    ProductStatusEnum(Integer status, String name) {
        this.status = status;
        this.name = name;
    }

    /**
     * get status.
     * @return
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * get name.
     * @return
     */
    public String getName() {
        return this.name;
    }

    /**
     * equals.
     * @param comparisonStatus comparison status.
     * @return Boolean.
     */
    public Boolean equals(Integer comparisonStatus)  {
        return this.status.equals(comparisonStatus);
    }
}
